package com.moxiao.yfjh.module.activity.controller.admin.activityVerificate.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static com.moxiao.yfjh.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 相亲分销信息 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class ActivityVerificateBaseVO {

    @Schema(description = "核销编码")
    private String no;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "17422")
    @NotNull(message = "用户编号不能为空")
    private Long userId;
    /**
     * 核销码
     */
    @Schema(description = "核销码", requiredMode = Schema.RequiredMode.REQUIRED, example = "3636")
    @NotNull(message = "核销码不能为空")
    private String verificateCode;

    @Schema(description = "活动编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "3636")
    @NotNull(message = "活动编号不能为空")
    private Long activeId;

    @Schema(description = "套餐编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "22215")
    @NotNull(message = "套餐编号不能为空")
    private Long packageId;

    @Schema(description = "活动名称", example = "张三")
    private String activeName;

    @Schema(description = "核销商家", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "核销商家不能为空")
    private Long verificateMerchant;

    @Schema(description = "核销用户", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "核销用户不能为空")
    private Long verificateUser;

    @Schema(description = "核销商品", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "核销商品不能为空")
    private Long verificateProduct;

    @Schema(description = "核销份数")
    private String verificatePhr;

    @Schema(description = "核销金额")
    private String verificateMoney;

    @Schema(description = "核销时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "核销时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime verificateTime;

    @Schema(description = "套餐详情信息")
    private String packageDetail;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态不能为空")
    private Byte status;

}
